import PureMainLayer from '../components/main';
import * as DevTeamAction from 'actions/dev-team';
import * as RunnableGroupAction from 'actions/runnable-group';
import * as ReactRedux from 'react-redux';

const mapDispatchToProps = (dispatch) => {
  return {
    onListCurrentDevTeams: () => {
      return dispatch(DevTeamAction.listByCurrentUser());
    },
    onListCurrentRunnableGroup: () => {
      return dispatch(RunnableGroupAction.listByCurrentUser());
    }
  };
};

export default ReactRedux.connect(undefined, mapDispatchToProps)(PureMainLayer);
